<?php
class GoodsDelRelationModel extends RelationModel{
	protected $tableName='goods';//定义主表
	protected $_link=array(
		'intro'=>array(
			'mapping_type'=>HAS_ONE,
			'foreign_key'=>'gid'
			),
		'goods_attr'=>array(
			'mapping_type'=>HAS_MANY,
			'foreign_key'=>'gid'
			),
		'goods_list'=>array(
			'mapping_type'=>HAS_MANY,
			'foreign_key'=>'gid'
			)
		);
}
?>